﻿{% extends 'admin/base.html' %}

{%load comm_extras %}

{% block head_soruce %}
<script type="text/javascript" src="/static/common/js/jquery.simplemodal.1.4.min.js"></script> 
<script type="text/javascript">
	function checkData(){
		var title = jQuery.trim($("#title").val());
		if(title == ""){
			alert("名称不能为空");
			return false;
		}
		return true;
	}

</script>
{% endblock %}

{% block main_content %}
<form action="{%url admin-supply-add-save-json supply_id %}" method="POST">
	<ul id="movie-form" class="form">
	    <li>
            <h1>修改供应商</h1>
        </li>
		<li>
            <label for="title">名称:</label>
            <input type="text" id="title" name="title" value="{{supply.title}}" class="inputText" />
        </li>
		<li>
			<br/>
			<input type="submit" id="btnAdd" value="保存供应商" onclick="return checkData();" style="margin-left:500px"/>
		</li>
	</ul>
</form>
{% endblock %}
